/*
 *Copyright (c) 2024 Black Sesame Technologies
 *
 *Licensed under the Apache License, Version 2.0 (the "License");
 *you may not use this file except in compliance with the License.
 *You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 *Unless required by applicable law or agreed to in writing, software
 *distributed under the License is distributed on an "AS IS" BASIS,
 *WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *See the License for the specific language governing permissions and
 *limitations under the License.
*/


#ifndef _PRINTF_INC_H
#define _PRINTF_INC_H


#include "printf.h"

#define TSENV	(0x1<<0) //test env log
#define ERROR	(0x1<<1) //error log
#define DEBUG	(0x1<<2) //debug log
#define MESG	(0x1<<3) //debug log

#define LOGON	(TSENV | ERROR | DEBUG)

#define hprintf(level, ...) do { \
	if(LOGON & level) { \
		printf(__VA_ARGS__); \
	} \
}while(0)


int putc_user_nb(unsigned char c,unsigned int delayLoop);
int getc_nb(unsigned char *c,unsigned int delayLoop);

#endif
